import ajax from '@/utils/request'
import '@/mock/find.js'

// export function getList() {
//     return ajax({
//         url: '/getList',
//     })
// }

// export function bannerList() {
//     return ajax({
//         url: '/banner/list'
//     })
// }

// 列表请求
export function getList() {
  return [
    {
      id: 1,
      nav: '全部',
      test: '超好吃的,可以尝试一下',
      title: '上海闪现的大白兔',
      url: 'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/首页/u449.png'
    },
    { id: 2, nav: '民宿', test: '鲜嫩多汁', title: '雨雾中的青岛', url: 'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/%E9%A6%96%E9%A1%B5/u383.png' },
    { id: 3, nav: '景点', test: '丰富的花样菜', title: '海边的悠闲', url: 'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/%E9%A6%96%E9%A1%B5/u347.png' },
    { id: 4, nav: '美食', test: '丰富的花样菜', title: '日料寿司店', url: 'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/发现/u667.png' },
    { id: 5, nav: '出去嗨', test: '丰富的花样菜', title: '悠闲风光,山水之间', url: 'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/发现/u724.png' },
    { id: 6, nav: '故事', test: '丰富的花样菜', title: '小镇风格', url: 'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/%E9%A6%96%E9%A1%B5/u276.jpg' }
  ]
}

// 美食下的列表
// export function getFood() {
//   return [
//     { navid: 1, test: '超好吃的,可以尝试一下', nav: '全部', title: '北京烤鸭馆', imgurl: 'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/发现/u633.png' },
//     { navid: 2, test: '鲜嫩多汁', nav: '民宿', title: '特色蒸饺馆', imgurl: 'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/发现/u668.png' },
//     { navid: 3, test: '丰富的花样菜', nav: '景点', title: '自选餐厅', imgurl: 'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/发现/u669.png' },
//     { navid: 4, test: '划算好吃又实惠', nav: '美食', title: '日料寿司店', imgurl: 'https://img.axureshop.com/c2/e9/7b/c2e97b96ebac43fdaa2b01538e82639f/images/发现/u667.png' },
//   ]
// }
// export function gitFoodList() {
//   return ajax({
//     url: 'gitFoodList',
//     method: 'post'
//   })
// }

// 点击获取信息
export function getFoodList(data: {name: string}) {
  return ajax({
    url: '/getFoodList',
    method: 'post',
    data
  })
}
